package managedbean.SCM.PickingOrder;

import entity.SCM.PickingOrder;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import session.stateless.SCM.DeliveryOrderBeanLocal;

@ManagedBean(name = "viewPickingOrderManagerBean")
@ViewScoped
public class ViewPickingOrderManagerBean implements Serializable{

    public ViewPickingOrderManagerBean() {
    }
    
    @EJB
    private DeliveryOrderBeanLocal deliveryOrderBeanLocal;
    private PickingOrder selectedPickingOrder;
    private String statusMessage;

    public PickingOrder getSelectedPickingOrder() {
        return selectedPickingOrder;
    }

    public void setSelectedPickingOrder(PickingOrder selectedPickingOrder) {
        this.selectedPickingOrder = selectedPickingOrder;
    }
    
    public String getStatusMessage() {
        return statusMessage;
    }

    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }
    
    public List<PickingOrder> getPickingOrder(){
        return deliveryOrderBeanLocal.getPickingOrder();
    }
}
